package com.dragon.modules.yuegou.query.pay;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.pay.PaymentRecordEntity;
import com.dragon.modules.yuegou.enums.pay.PaymentRecordPayType;
import com.dragon.modules.yuegou.enums.pay.PaymentRecordStatus;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * 支付记录表 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2019-03-18 16:40:41
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class PaymentRecordQuery extends PaymentRecordEntity implements Query<PaymentRecordEntity> {

    /** 查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 订单号查询条件 */
	@JsonUnwrapped(prefix = "orderNo")
	private Condition<String> orderNoCondition;

    /** [枚举]支付类型：0-微信-WEICHANT、1-支付宝-ALIPAY、2-悦卡-YUECARD、3-悦币-YUECOIN、4-积分-POINTS查询条件 */
	@JsonUnwrapped(prefix = "payType")
	private Condition<PaymentRecordPayType> payTypeCondition;

    /** 支付人查询条件 */
	@JsonUnwrapped(prefix = "payerUser")
	private Condition<String> payerUserCondition;

    /** 支付手机号-  后台交易明细需要显示查询条件 */
	@JsonUnwrapped(prefix = "payMobile")
	private Condition<String> payMobileCondition;

    /** [枚举]支付状态：0-未支付-NOTPAY、1-已支付-PAID、2-部分退款-PART_REFUND、3-全部退款-ALL_REFUND查询条件 */
	@JsonUnwrapped(prefix = "status")
	private Condition<PaymentRecordStatus> statusCondition;

    /** 第三方支付号查询条件 */
	@JsonUnwrapped(prefix = "otherTrxNo")
	private Condition<String> otherTrxNoCondition;

    /** 版本号查询条件 */
	@JsonUnwrapped(prefix = "version")
	private Condition<Integer> versionCondition;

    /** 收款商户id查询条件 */
	@JsonUnwrapped(prefix = "merchantId")
	private Condition<String> merchantIdCondition;

    /** 商户名称 需要冗余进来,后台有交易明细需要显示查询条件 */
	@JsonUnwrapped(prefix = "merchantName")
	private Condition<String> merchantNameCondition;

    /** 商圈id查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** 支付金额查询条件 */
	@JsonUnwrapped(prefix = "payFee")
	private Condition<BigDecimal> payFeeCondition;

    /** 设备号查询条件 */
	@JsonUnwrapped(prefix = "deviceInfo")
	private Condition<String> deviceInfoCondition;

    /**  微信分配的公众账号ID查询条件 */
	@JsonUnwrapped(prefix = "wxAppid")
	private Condition<String> wxAppidCondition;

    /**  微信支付分配的商户号查询条件 */
	@JsonUnwrapped(prefix = "mchId")
	private Condition<String> mchIdCondition;

    /** 小程序appid查询条件 */
	@JsonUnwrapped(prefix = "subAppid")
	private Condition<String> subAppidCondition;

    /** 子商户号查询条件 */
	@JsonUnwrapped(prefix = "subMchId")
	private Condition<String> subMchIdCondition;

    /** 支付宝appid查询条件 */
	@JsonUnwrapped(prefix = "aliAppid")
	private Condition<String> aliAppidCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "modifiedTime")
	private Condition<LocalDateTime> modifiedTimeCondition;

    /** 支付时间查询条件 */
	@JsonUnwrapped(prefix = "payTime")
	private Condition<LocalDateTime> payTimeCondition;

    /** 支付完成时间查询条件 */
	@JsonUnwrapped(prefix = "paySuccessTime")
	private Condition<LocalDateTime> paySuccessTimeCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public PaymentRecordQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public PaymentRecordQuery(PaymentRecordEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public PaymentRecordQuery(PaymentRecordQuery other) {
		super(other);
		if (other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if (other.orderNoCondition != null) {
			this.orderNoCondition = other.orderNoCondition.copy();
		}
		if (other.payTypeCondition != null) {
			this.payTypeCondition = other.payTypeCondition.copy();
		}
		if (other.payerUserCondition != null) {
			this.payerUserCondition = other.payerUserCondition.copy();
		}
		if (other.payMobileCondition != null) {
			this.payMobileCondition = other.payMobileCondition.copy();
		}
		if (other.statusCondition != null) {
			this.statusCondition = other.statusCondition.copy();
		}
		if (other.otherTrxNoCondition != null) {
			this.otherTrxNoCondition = other.otherTrxNoCondition.copy();
		}
		if (other.versionCondition != null) {
			this.versionCondition = other.versionCondition.copy();
		}
		if (other.merchantIdCondition != null) {
			this.merchantIdCondition = other.merchantIdCondition.copy();
		}
		if (other.merchantNameCondition != null) {
			this.merchantNameCondition = other.merchantNameCondition.copy();
		}
		if (other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if (other.payFeeCondition != null) {
			this.payFeeCondition = other.payFeeCondition.copy();
		}
		if (other.deviceInfoCondition != null) {
			this.deviceInfoCondition = other.deviceInfoCondition.copy();
		}
		if (other.wxAppidCondition != null) {
			this.wxAppidCondition = other.wxAppidCondition.copy();
		}
		this.setOther(other);
	}

	private void setOther(PaymentRecordQuery other){
		if(other.mchIdCondition != null) {
			this.mchIdCondition = other.mchIdCondition.copy();
		}
		if(other.subAppidCondition != null) {
			this.subAppidCondition = other.subAppidCondition.copy();
		}
		if(other.subMchIdCondition != null) {
			this.subMchIdCondition = other.subMchIdCondition.copy();
		}
		if(other.aliAppidCondition != null) {
			this.aliAppidCondition = other.aliAppidCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.modifiedTimeCondition != null) {
			this.modifiedTimeCondition = other.modifiedTimeCondition.copy();
		}
		if(other.payTimeCondition != null) {
			this.payTimeCondition = other.payTimeCondition.copy();
		}
		if(other.paySuccessTimeCondition != null) {
			this.paySuccessTimeCondition = other.paySuccessTimeCondition.copy();
		}
	}

	@Override
	public QueryWrapper<PaymentRecordEntity> toQueryWrapper() {
		QueryWrapper<PaymentRecordEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (orderNoCondition != null) {
			orderNoCondition.toWrapper(wrapper, COL_ORDER_NO);
		}
		if (payTypeCondition != null) {
			payTypeCondition.toWrapper(wrapper, COL_PAY_TYPE);
		}
		if (payerUserCondition != null) {
			payerUserCondition.toWrapper(wrapper, COL_PAYER_USER);
		}
		if (payMobileCondition != null) {
			payMobileCondition.toWrapper(wrapper, COL_PAY_MOBILE);
		}
		if (statusCondition != null) {
			statusCondition.toWrapper(wrapper, COL_STATUS);
		}
		if (otherTrxNoCondition != null) {
			otherTrxNoCondition.toWrapper(wrapper, COL_OTHER_TRX_NO);
		}
		if (versionCondition != null) {
			versionCondition.toWrapper(wrapper, COL_VERSION);
		}
		if (merchantIdCondition != null) {
			merchantIdCondition.toWrapper(wrapper, COL_MERCHANT_ID);
		}
		if (merchantNameCondition != null) {
			merchantNameCondition.toWrapper(wrapper, COL_MERCHANT_NAME);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (payFeeCondition != null) {
			payFeeCondition.toWrapper(wrapper, COL_PAY_FEE);
		}
		if (deviceInfoCondition != null) {
			deviceInfoCondition.toWrapper(wrapper, COL_DEVICE_INFO);
		}
		if (wxAppidCondition != null) {
			wxAppidCondition.toWrapper(wrapper, COL_WX_APPID);
		}
		return getQueryWrapper(wrapper);
	}

	private QueryWrapper<PaymentRecordEntity> getQueryWrapper(QueryWrapper<PaymentRecordEntity> wrapper){
		if (mchIdCondition != null) {
			mchIdCondition.toWrapper(wrapper, COL_MCH_ID);
		}
		if (subAppidCondition != null) {
			subAppidCondition.toWrapper(wrapper, COL_SUB_APPID);
		}
		if (subMchIdCondition != null) {
			subMchIdCondition.toWrapper(wrapper, COL_SUB_MCH_ID);
		}
		if (aliAppidCondition != null) {
			aliAppidCondition.toWrapper(wrapper, COL_ALI_APPID);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (modifiedTimeCondition != null) {
			modifiedTimeCondition.toWrapper(wrapper, COL_MODIFIED_TIME);
		}
		if (payTimeCondition != null) {
			payTimeCondition.toWrapper(wrapper, COL_PAY_TIME);
		}
		if (paySuccessTimeCondition != null) {
			paySuccessTimeCondition.toWrapper(wrapper, COL_PAY_SUCCESS_TIME);
		}
		return wrapper;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param idCondition 查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回订单号查询条件
	 * 
	 * @return orderNoCondition 订单号查询条件
	 */
	public Condition<String> orderNo() {
		this.orderNoCondition = new Condition<>();
		return this.orderNoCondition;
	}
	
	/**
	 * 获取订单号查询条件
	 * 
	 * @return orderNoCondition 订单号查询条件
	 */
	public Condition<String> getOrderNoCondition() {
		return orderNoCondition;
	}

	/**
	 * 设置订单号查询条件
	 * 
	 * @param orderNoCondition 订单号查询条件
	 */
	public void setOrderNoCondition(Condition<String> orderNoCondition) {
		this.orderNoCondition = orderNoCondition;
	}

	/**
	 * 构造并返回[枚举]支付类型：0-微信-WEICHANT、1-支付宝-ALIPAY、2-悦卡-YUECARD、3-悦币-YUECOIN、4-积分-POINTS查询条件
	 * 
	 * @return payTypeCondition [枚举]支付类型：0-微信-WEICHANT、1-支付宝-ALIPAY、2-悦卡-YUECARD、3-悦币-YUECOIN、4-积分-POINTS查询条件
	 */
	public Condition<PaymentRecordPayType> payType() {
		this.payTypeCondition = new Condition<>();
		return this.payTypeCondition;
	}
	
	/**
	 * 获取[枚举]支付类型：0-微信-WEICHANT、1-支付宝-ALIPAY、2-悦卡-YUECARD、3-悦币-YUECOIN、4-积分-POINTS查询条件
	 * 
	 * @return payTypeCondition [枚举]支付类型：0-微信-WEICHANT、1-支付宝-ALIPAY、2-悦卡-YUECARD、3-悦币-YUECOIN、4-积分-POINTS查询条件
	 */
	public Condition<PaymentRecordPayType> getPayTypeCondition() {
		return payTypeCondition;
	}

	/**
	 * 设置[枚举]支付类型：0-微信-WEICHANT、1-支付宝-ALIPAY、2-悦卡-YUECARD、3-悦币-YUECOIN、4-积分-POINTS查询条件
	 * 
	 * @param payTypeCondition [枚举]支付类型：0-微信-WEICHANT、1-支付宝-ALIPAY、2-悦卡-YUECARD、3-悦币-YUECOIN、4-积分-POINTS查询条件
	 */
	public void setPayTypeCondition(Condition<PaymentRecordPayType> payTypeCondition) {
		this.payTypeCondition = payTypeCondition;
	}

	/**
	 * 构造并返回支付人查询条件
	 * 
	 * @return payerUserCondition 支付人查询条件
	 */
	public Condition<String> payerUser() {
		this.payerUserCondition = new Condition<>();
		return this.payerUserCondition;
	}
	
	/**
	 * 获取支付人查询条件
	 * 
	 * @return payerUserCondition 支付人查询条件
	 */
	public Condition<String> getPayerUserCondition() {
		return payerUserCondition;
	}

	/**
	 * 设置支付人查询条件
	 * 
	 * @param payerUserCondition 支付人查询条件
	 */
	public void setPayerUserCondition(Condition<String> payerUserCondition) {
		this.payerUserCondition = payerUserCondition;
	}

	/**
	 * 构造并返回支付手机号-  后台交易明细需要显示查询条件
	 * 
	 * @return payMobileCondition 支付手机号-  后台交易明细需要显示查询条件
	 */
	public Condition<String> payMobile() {
		this.payMobileCondition = new Condition<>();
		return this.payMobileCondition;
	}
	
	/**
	 * 获取支付手机号-  后台交易明细需要显示查询条件
	 * 
	 * @return payMobileCondition 支付手机号-  后台交易明细需要显示查询条件
	 */
	public Condition<String> getPayMobileCondition() {
		return payMobileCondition;
	}

	/**
	 * 设置支付手机号-  后台交易明细需要显示查询条件
	 * 
	 * @param payMobileCondition 支付手机号-  后台交易明细需要显示查询条件
	 */
	public void setPayMobileCondition(Condition<String> payMobileCondition) {
		this.payMobileCondition = payMobileCondition;
	}

	/**
	 * 构造并返回[枚举]支付状态：0-未支付-NOTPAY、1-已支付-PAID、2-部分退款-PART_REFUND、3-全部退款-ALL_REFUND查询条件
	 * 
	 * @return statusCondition [枚举]支付状态：0-未支付-NOTPAY、1-已支付-PAID、2-部分退款-PART_REFUND、3-全部退款-ALL_REFUND查询条件
	 */
	public Condition<PaymentRecordStatus> status() {
		this.statusCondition = new Condition<>();
		return this.statusCondition;
	}
	
	/**
	 * 获取[枚举]支付状态：0-未支付-NOTPAY、1-已支付-PAID、2-部分退款-PART_REFUND、3-全部退款-ALL_REFUND查询条件
	 * 
	 * @return statusCondition [枚举]支付状态：0-未支付-NOTPAY、1-已支付-PAID、2-部分退款-PART_REFUND、3-全部退款-ALL_REFUND查询条件
	 */
	public Condition<PaymentRecordStatus> getStatusCondition() {
		return statusCondition;
	}

	/**
	 * 设置[枚举]支付状态：0-未支付-NOTPAY、1-已支付-PAID、2-部分退款-PART_REFUND、3-全部退款-ALL_REFUND查询条件
	 * 
	 * @param statusCondition [枚举]支付状态：0-未支付-NOTPAY、1-已支付-PAID、2-部分退款-PART_REFUND、3-全部退款-ALL_REFUND查询条件
	 */
	public void setStatusCondition(Condition<PaymentRecordStatus> statusCondition) {
		this.statusCondition = statusCondition;
	}

	/**
	 * 构造并返回第三方支付号查询条件
	 * 
	 * @return otherTrxNoCondition 第三方支付号查询条件
	 */
	public Condition<String> otherTrxNo() {
		this.otherTrxNoCondition = new Condition<>();
		return this.otherTrxNoCondition;
	}
	
	/**
	 * 获取第三方支付号查询条件
	 * 
	 * @return otherTrxNoCondition 第三方支付号查询条件
	 */
	public Condition<String> getOtherTrxNoCondition() {
		return otherTrxNoCondition;
	}

	/**
	 * 设置第三方支付号查询条件
	 * 
	 * @param otherTrxNoCondition 第三方支付号查询条件
	 */
	public void setOtherTrxNoCondition(Condition<String> otherTrxNoCondition) {
		this.otherTrxNoCondition = otherTrxNoCondition;
	}

	/**
	 * 构造并返回版本号查询条件
	 * 
	 * @return versionCondition 版本号查询条件
	 */
	public Condition<Integer> version() {
		this.versionCondition = new Condition<>();
		return this.versionCondition;
	}
	
	/**
	 * 获取版本号查询条件
	 * 
	 * @return versionCondition 版本号查询条件
	 */
	public Condition<Integer> getVersionCondition() {
		return versionCondition;
	}

	/**
	 * 设置版本号查询条件
	 * 
	 * @param versionCondition 版本号查询条件
	 */
	public void setVersionCondition(Condition<Integer> versionCondition) {
		this.versionCondition = versionCondition;
	}

	/**
	 * 构造并返回收款商户id查询条件
	 * 
	 * @return merchantIdCondition 收款商户id查询条件
	 */
	public Condition<String> merchantId() {
		this.merchantIdCondition = new Condition<>();
		return this.merchantIdCondition;
	}
	
	/**
	 * 获取收款商户id查询条件
	 * 
	 * @return merchantIdCondition 收款商户id查询条件
	 */
	public Condition<String> getMerchantIdCondition() {
		return merchantIdCondition;
	}

	/**
	 * 设置收款商户id查询条件
	 * 
	 * @param merchantIdCondition 收款商户id查询条件
	 */
	public void setMerchantIdCondition(Condition<String> merchantIdCondition) {
		this.merchantIdCondition = merchantIdCondition;
	}

	/**
	 * 构造并返回商户名称 需要冗余进来,后台有交易明细需要显示查询条件
	 * 
	 * @return merchantNameCondition 商户名称 需要冗余进来,后台有交易明细需要显示查询条件
	 */
	public Condition<String> merchantName() {
		this.merchantNameCondition = new Condition<>();
		return this.merchantNameCondition;
	}
	
	/**
	 * 获取商户名称 需要冗余进来,后台有交易明细需要显示查询条件
	 * 
	 * @return merchantNameCondition 商户名称 需要冗余进来,后台有交易明细需要显示查询条件
	 */
	public Condition<String> getMerchantNameCondition() {
		return merchantNameCondition;
	}

	/**
	 * 设置商户名称 需要冗余进来,后台有交易明细需要显示查询条件
	 * 
	 * @param merchantNameCondition 商户名称 需要冗余进来,后台有交易明细需要显示查询条件
	 */
	public void setMerchantNameCondition(Condition<String> merchantNameCondition) {
		this.merchantNameCondition = merchantNameCondition;
	}

	/**
	 * 构造并返回商圈id查询条件
	 * 
	 * @return busdIdCondition 商圈id查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取商圈id查询条件
	 * 
	 * @return busdIdCondition 商圈id查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置商圈id查询条件
	 * 
	 * @param busdIdCondition 商圈id查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回支付金额查询条件
	 * 
	 * @return payFeeCondition 支付金额查询条件
	 */
	public Condition<BigDecimal> payFee() {
		this.payFeeCondition = new Condition<>();
		return this.payFeeCondition;
	}
	
	/**
	 * 获取支付金额查询条件
	 * 
	 * @return payFeeCondition 支付金额查询条件
	 */
	public Condition<BigDecimal> getPayFeeCondition() {
		return payFeeCondition;
	}

	/**
	 * 设置支付金额查询条件
	 * 
	 * @param payFeeCondition 支付金额查询条件
	 */
	public void setPayFeeCondition(Condition<BigDecimal> payFeeCondition) {
		this.payFeeCondition = payFeeCondition;
	}

	/**
	 * 构造并返回设备号查询条件
	 * 
	 * @return deviceInfoCondition 设备号查询条件
	 */
	public Condition<String> deviceInfo() {
		this.deviceInfoCondition = new Condition<>();
		return this.deviceInfoCondition;
	}
	
	/**
	 * 获取设备号查询条件
	 * 
	 * @return deviceInfoCondition 设备号查询条件
	 */
	public Condition<String> getDeviceInfoCondition() {
		return deviceInfoCondition;
	}

	/**
	 * 设置设备号查询条件
	 * 
	 * @param deviceInfoCondition 设备号查询条件
	 */
	public void setDeviceInfoCondition(Condition<String> deviceInfoCondition) {
		this.deviceInfoCondition = deviceInfoCondition;
	}

	/**
	 * 构造并返回 微信分配的公众账号ID查询条件
	 * 
	 * @return wxAppidCondition  微信分配的公众账号ID查询条件
	 */
	public Condition<String> wxAppid() {
		this.wxAppidCondition = new Condition<>();
		return this.wxAppidCondition;
	}
	
	/**
	 * 获取 微信分配的公众账号ID查询条件
	 * 
	 * @return wxAppidCondition  微信分配的公众账号ID查询条件
	 */
	public Condition<String> getWxAppidCondition() {
		return wxAppidCondition;
	}

	/**
	 * 设置 微信分配的公众账号ID查询条件
	 * 
	 * @param wxAppidCondition  微信分配的公众账号ID查询条件
	 */
	public void setWxAppidCondition(Condition<String> wxAppidCondition) {
		this.wxAppidCondition = wxAppidCondition;
	}

	/**
	 * 构造并返回 微信支付分配的商户号查询条件
	 * 
	 * @return mchIdCondition  微信支付分配的商户号查询条件
	 */
	public Condition<String> mchId() {
		this.mchIdCondition = new Condition<>();
		return this.mchIdCondition;
	}
	
	/**
	 * 获取 微信支付分配的商户号查询条件
	 * 
	 * @return mchIdCondition  微信支付分配的商户号查询条件
	 */
	public Condition<String> getMchIdCondition() {
		return mchIdCondition;
	}

	/**
	 * 设置 微信支付分配的商户号查询条件
	 * 
	 * @param mchIdCondition  微信支付分配的商户号查询条件
	 */
	public void setMchIdCondition(Condition<String> mchIdCondition) {
		this.mchIdCondition = mchIdCondition;
	}

	/**
	 * 构造并返回小程序appid查询条件
	 * 
	 * @return subAppidCondition 小程序appid查询条件
	 */
	public Condition<String> subAppid() {
		this.subAppidCondition = new Condition<>();
		return this.subAppidCondition;
	}
	
	/**
	 * 获取小程序appid查询条件
	 * 
	 * @return subAppidCondition 小程序appid查询条件
	 */
	public Condition<String> getSubAppidCondition() {
		return subAppidCondition;
	}

	/**
	 * 设置小程序appid查询条件
	 * 
	 * @param subAppidCondition 小程序appid查询条件
	 */
	public void setSubAppidCondition(Condition<String> subAppidCondition) {
		this.subAppidCondition = subAppidCondition;
	}

	/**
	 * 构造并返回子商户号查询条件
	 * 
	 * @return subMchIdCondition 子商户号查询条件
	 */
	public Condition<String> subMchId() {
		this.subMchIdCondition = new Condition<>();
		return this.subMchIdCondition;
	}
	
	/**
	 * 获取子商户号查询条件
	 * 
	 * @return subMchIdCondition 子商户号查询条件
	 */
	public Condition<String> getSubMchIdCondition() {
		return subMchIdCondition;
	}

	/**
	 * 设置子商户号查询条件
	 * 
	 * @param subMchIdCondition 子商户号查询条件
	 */
	public void setSubMchIdCondition(Condition<String> subMchIdCondition) {
		this.subMchIdCondition = subMchIdCondition;
	}

	/**
	 * 构造并返回支付宝appid查询条件
	 * 
	 * @return aliAppidCondition 支付宝appid查询条件
	 */
	public Condition<String> aliAppid() {
		this.aliAppidCondition = new Condition<>();
		return this.aliAppidCondition;
	}
	
	/**
	 * 获取支付宝appid查询条件
	 * 
	 * @return aliAppidCondition 支付宝appid查询条件
	 */
	public Condition<String> getAliAppidCondition() {
		return aliAppidCondition;
	}

	/**
	 * 设置支付宝appid查询条件
	 * 
	 * @param aliAppidCondition 支付宝appid查询条件
	 */
	public void setAliAppidCondition(Condition<String> aliAppidCondition) {
		this.aliAppidCondition = aliAppidCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return createdTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return createdTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param createdTimeCondition 查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return modifiedTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> modifiedTime() {
		this.modifiedTimeCondition = new Condition<>();
		return this.modifiedTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return modifiedTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getModifiedTimeCondition() {
		return modifiedTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param modifiedTimeCondition 查询条件
	 */
	public void setModifiedTimeCondition(Condition<LocalDateTime> modifiedTimeCondition) {
		this.modifiedTimeCondition = modifiedTimeCondition;
	}

	/**
	 * 构造并返回支付时间查询条件
	 * 
	 * @return payTimeCondition 支付时间查询条件
	 */
	public Condition<LocalDateTime> payTime() {
		this.payTimeCondition = new Condition<>();
		return this.payTimeCondition;
	}
	
	/**
	 * 获取支付时间查询条件
	 * 
	 * @return payTimeCondition 支付时间查询条件
	 */
	public Condition<LocalDateTime> getPayTimeCondition() {
		return payTimeCondition;
	}

	/**
	 * 设置支付时间查询条件
	 * 
	 * @param payTimeCondition 支付时间查询条件
	 */
	public void setPayTimeCondition(Condition<LocalDateTime> payTimeCondition) {
		this.payTimeCondition = payTimeCondition;
	}

	/**
	 * 构造并返回支付完成时间查询条件
	 * 
	 * @return paySuccessTimeCondition 支付完成时间查询条件
	 */
	public Condition<LocalDateTime> paySuccessTime() {
		this.paySuccessTimeCondition = new Condition<>();
		return this.paySuccessTimeCondition;
	}
	
	/**
	 * 获取支付完成时间查询条件
	 * 
	 * @return paySuccessTimeCondition 支付完成时间查询条件
	 */
	public Condition<LocalDateTime> getPaySuccessTimeCondition() {
		return paySuccessTimeCondition;
	}

	/**
	 * 设置支付完成时间查询条件
	 * 
	 * @param paySuccessTimeCondition 支付完成时间查询条件
	 */
	public void setPaySuccessTimeCondition(Condition<LocalDateTime> paySuccessTimeCondition) {
		this.paySuccessTimeCondition = paySuccessTimeCondition;
	}

}
